#!/bin/bash
set -o errexit
apt-get update
apt  install docker-compose -y

mkdir -p ./clash_docker/config

# 在用户的source中添加
function proxy_off(){
    unset http_proxy
    unset https_proxy
    unset all_proxy
    echo -e "已关闭代理"
}

function proxy_on() {
    export no_proxy="localhost,127.0.0.1,localaddress,.localdomain.com"
    # 将 10.10.10.10 改为你的代理节点
    export http_proxy="http://192.168.3.7:7890"
    export https_proxy="http://192.168.3.7:7890"
    export all_proxy="socks5://192.168.3.7:7890"
    echo -e "已开启代理"
}



